package com.feng.chat.pojo;

import io.gitee.zerowsh.actable.annotation.AcColumn;
import io.gitee.zerowsh.actable.annotation.AcTable;
import io.gitee.zerowsh.actable.emnus.ColumnTypeEnums;

import java.time.LocalTime;

@AcTable(name = "robot",comment = "聊天机器人表")
public class Robot {
    @AcColumn(name = "id",comment = "机器人ID",type = ColumnTypeEnums.INT,length = 20,isAutoIncrement = true,isKey = true)
    private Integer id;

    @AcColumn(name = "user_id",defaultValue = "0",comment = "关联用户ID",type = ColumnTypeEnums.INT)
    private Integer user_id;

    @AcColumn(name = "robot_name", defaultValue = "", comment = "机器人名称", type = ColumnTypeEnums.VARCHAR,length = 30, isNull = false)
    private String robot_name;

    @AcColumn(name = "describe", defaultValue = "", comment = "描述信息", type = ColumnTypeEnums.VARCHAR,length = 255, isNull = false)
    private String describe;

    @AcColumn(name = "logo", defaultValue = "", comment = "机器人logo", type = ColumnTypeEnums.VARCHAR,length = 255, isNull = false)
    private String logo;

    @AcColumn(name = "is_talk",defaultValue = "0",comment = "可发送消息[0:否;1:是;]",type = ColumnTypeEnums.TINYINT)
    private Integer is_talk;

    @AcColumn(name = "status",defaultValue = "0",comment = "状态[-1:已删除;0:正常;1:已禁用;]",type = ColumnTypeEnums.TINYINT)
    private Integer status;

    @AcColumn(name = "type",defaultValue = "0",comment = "机器人类型",type = ColumnTypeEnums.TINYINT)
    private Integer type;

    @AcColumn(name = "created_at", comment = "创建时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime createdAt;

    @AcColumn(name = "updated_at", comment = "更新时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime updatedAt;
}
